package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;
import com.aiyige.base.api.service.ApiService;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by zhuyakun on 2017/11/27.
 */

public class QueryOwnerGoodsByKeyWordRequest {
    String keyWord;

    private QueryOwnerGoodsByKeyWordRequest(Builder builder) {
        setKeyWord(builder.keyWord);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }


    public static final class Builder {
        private String keyWord;

        private Builder() {
        }

        public Builder keyWord(String keyWord) {
            this.keyWord = keyWord;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().queryOwnerGoodsByKeyWord(new QueryOwnerGoodsByKeyWordRequest(this));
        }
    }
}
